function index(Joi) {
  return {
    method: 'get',
    path: '/',
    async handler(ctx, next) {
      ctx.state = {
        title: 'Koa2'
      }

      await ctx.render('index', ctx.state)
    }
  }
}

module.exports = {
  index
}